// 导入路由
import {
  BrowserRouter as Router,
  Route,
  Switch,
  Redirect,
} from 'react-router-dom'

// 导入页面组件
import Login from './pages/Login'
import Layout from './pages/Layout'
import { AuthRoute } from './components/AuthRoute'
// 配置路由规则
export default function App(){
    return (
    <Router>
    <Switch>
    <Route path="/login" component={Login}></Route>
    <AuthRoute component={Layout} path="/"></AuthRoute>
    </Switch>
    </Router>

    ) 
}

